/* 报纸风格的Markdown主题 */
.markdown-theme-newsprint {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.7;
  color: #222;
  background-color: #fdfdfd;
  padding: 20px;
  max-width: 720px;
  margin: 0 auto;
  text-align: justify;
  hyphens: auto;
}

.markdown-theme-newsprint h1,
.markdown-theme-newsprint h2,
.markdown-theme-newsprint h3,
.markdown-theme-newsprint h4,
.markdown-theme-newsprint h5,
.markdown-theme-newsprint h6 {
  font-weight: 700;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  color: #000;
  text-align: left;
}

.markdown-theme-newsprint h1 {
  font-size: 2.2em;
  line-height: 1.1;
  text-align: center;
  margin-top: 0.5em;
  margin-bottom: 0.8em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid #000;
  padding-bottom: 0.2em;
}

.markdown-theme-newsprint h2 {
  font-size: 1.6em;
  line-height: 1.3;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.2em;
}

.markdown-theme-newsprint h3 {
  font-size: 1.3em;
}

.markdown-theme-newsprint h4 {
  font-size: 1.1em;
}

.markdown-theme-newsprint p {
  margin-bottom: 1.2em;
  text-indent: 1.5em;
}

.markdown-theme-newsprint p:first-of-type:first-letter {
  float: left;
  font-size: 3em;
  line-height: 0.9;
  padding-right: 0.1em;
  font-weight: bold;
}

.markdown-theme-newsprint a {
  color: #000;
  text-decoration: none;
  border-bottom: 1px dotted #777;
}

.markdown-theme-newsprint a:hover {
  border-bottom: 1px solid #000;
}

.markdown-theme-newsprint blockquote {
  margin: 1.5em 1em;
  padding: 0.5em 1em;
  font-style: italic;
  font-size: 0.95em;
  border-left: none;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  text-align: center;
  quotes: "\\201C""\\201D";
}

.markdown-theme-newsprint blockquote:before {
  content: open-quote;
  font-size: 2em;
  line-height: 0.1em;
  margin-right: 0.1em;
  vertical-align: -0.2em;
}

.markdown-theme-newsprint blockquote:after {
  content: close-quote;
  font-size: 2em;
  line-height: 0.1em;
  margin-left: 0.1em;
  vertical-align: -0.2em;
}

.markdown-theme-newsprint code {
  font-family: "Courier New", monospace;
  background-color: #f5f5f5;
  padding: 0.2em 0.4em;
  border-radius: 2px;
  font-size: 0.9em;
}

.markdown-theme-newsprint pre {
  background-color: #f5f5f5;
  padding: 16px;
  border-radius: 2px;
  margin: 1.2em 0;
  overflow-x: auto;
}

.markdown-theme-newsprint pre code {
  background-color: transparent;
  padding: 0;
}

.markdown-theme-newsprint img {
  max-width: 100%;
  margin: 1.5em auto;
  display: block;
  border: 1px solid #ddd;
  padding: 3px;
}

.markdown-theme-newsprint hr {
  border: none;
  border-top: 1px dotted #777;
  margin: 2em 0;
}

.markdown-theme-newsprint ul {
  list-style-type: square;
  margin-bottom: 1.2em;
  padding-left: 2em;
}

.markdown-theme-newsprint ol {
  margin-bottom: 1.2em;
  padding-left: 2em;
}

.markdown-theme-newsprint li {
  margin-bottom: 0.5em;
}

.markdown-theme-newsprint table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5em 0;
  border: 1px solid #ddd;
  font-size: 0.9em;
}

.markdown-theme-newsprint table th,
.markdown-theme-newsprint table td {
  border: 1px solid #ddd;
  padding: 8px 12px;
  text-align: left;
}

.markdown-theme-newsprint table th {
  background-color: #f5f5f5;
  font-weight: bold;
}

.markdown-theme-newsprint table caption {
  font-style: italic;
  caption-side: bottom;
  text-align: center;
  margin-top: 0.5em;
}

/* 暗色模式 */
.dark-mode .markdown-theme-newsprint {
  color: #d4d4d4;
  background-color: #222;
}

.dark-mode .markdown-theme-newsprint h1,
.dark-mode .markdown-theme-newsprint h2,
.dark-mode .markdown-theme-newsprint h3,
.dark-mode .markdown-theme-newsprint h4,
.dark-mode .markdown-theme-newsprint h5,
.dark-mode .markdown-theme-newsprint h6 {
  color: #f0f0f0;
}

.dark-mode .markdown-theme-newsprint h1 {
  border-bottom: 2px solid #ddd;
}

.dark-mode .markdown-theme-newsprint h2 {
  border-bottom: 1px solid #444;
}

.dark-mode .markdown-theme-newsprint a {
  color: #e0e0e0;
  border-bottom: 1px dotted #777;
}

.dark-mode .markdown-theme-newsprint a:hover {
  border-bottom: 1px solid #ddd;
}

.dark-mode .markdown-theme-newsprint blockquote {
  border-top: 1px solid #444;
  border-bottom: 1px solid #444;
}

.dark-mode .markdown-theme-newsprint code {
  background-color: #333;
}

.dark-mode .markdown-theme-newsprint pre {
  background-color: #333;
}

.dark-mode .markdown-theme-newsprint img {
  border: 1px solid #444;
}

.dark-mode .markdown-theme-newsprint hr {
  border-top: 1px dotted #777;
}

.dark-mode .markdown-theme-newsprint table {
  border: 1px solid #444;
}

.dark-mode .markdown-theme-newsprint table th,
.dark-mode .markdown-theme-newsprint table td {
  border: 1px solid #444;
}

.dark-mode .markdown-theme-newsprint table th {
  background-color: #333;
} 